


function CSDN打印() {
    (() => {
        [
            ('.blog_container_aside'),
            ('.recommend-right.align-items-stretch.clearfix'),
            ('.passport-login-tip-container'),
            ('.csdn-side-toolbar'),
            ('#toolbarBox'),
            ('.more-toolbox-new.more-toolbar.more-toolbox-active'),
            ('.second-recommend-box'),
            ('.first-recommend-box'),
            ('#rightAside'),
            ('#toolBarBox'),
            ('#csdn-toolbar'),
            ('.blog-footer-bottom'),
        ].forEach(selector => {
            let el = document.querySelector(selector)
            el && el.remove(el)
        })

        Array.from(document.querySelectorAll('.hide-preCode-box'))
            .forEach(el => {
                el.firstChild.click()
            })

        document.querySelector('.recommend-box').remove()

        setTimeout(window.print, 1000)
    })()
}

function 知乎打印() {
    (() => {
        [
            '.css-l44lgl',
            '.css-s8xum0',
            '.Post-Row-Content-right.css-1qyytj7',
            '.Sticky.RichContent-actions.is-fixed.is-bottom',
            '.css-woosw9',
            '.Post-Sub.Post-NormalSub',
            '[data-za-detail-view-path-module=CommentList]',
        ].forEach(selector => {
            let el = document.querySelector(selector)
            el && el.remove(el)
        })
        setTimeout(window.print, 1000)
    })()
}

